package crm.dao.impl;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

import crm.dao.BaseDao;
import crm.dao.ContractProductDao;
import crm.entity.ContractProduct;

public class ContractProductDaoImpl extends BaseDao<ContractProduct> implements ContractProductDao {

	@Override
	public void addContractProduct(Connection connection, String sql, Object... args) throws SQLException, RuntimeException {
	
		
		update(connection, sql, args);
	}

	@Override
	public List<ContractProduct> getContractByID(Connection connection, String sql, Class clazz, Object... args) throws InstantiationException, IllegalAccessException, NoSuchFieldException, SecurityException, SQLException {
	
		return getList(connection, sql, clazz, args);
	}

}
